package com.xj.exportfile.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xj.exportfile.enums.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
public class User {
    /**
     * 编号
     */
    @Excel(name = "编号")
    private Integer id;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private String sex;

    /**
     * 住址
     */
    @Excel(name = "住址")
    private String address;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private String phone;

    /**
     * 工作类型
     */
    @Excel(name = "工作类型")
    private String work;

    /**
     * 个人简介
     */
    @Excel(name = "个人简介")
    private String profile;

    /**
     * 个人图片
     */
    @Excel(name = "个人图片", type = Excel.Type.IMAGES)
    private String images;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", sort = 7)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
